home *** CD-ROM | disk | FTP | other *** search
- Path: sentef2.fi.uib.no!boukanov
- From: boukanov@sentef2.fi.uib.no (Igor Boukanov)
- Newsgroups: comp.lang.c++
- Subject: ? about friend template
- Date: 14 Feb 1996 11:15:36 GMT
- Organization: Fysisk institutt, Universitetet i Bergen
- Message-ID: <4fsg8o$rh1@ugress.uib.no>
- NNTP-Posting-Host: sentef2.fi.uib.no
- Summary: problems with declaration friend template classes.
- Keywords: c++, template
- X-Newsreader: TIN [version 1.2 PL2]
-
- I have the next questions. How is it possible to declare template class
- to be a friend of non template class? I tried to write something like this:
-
- template<class T> class template_class{
- ...
- };
-
- class simple_class{
- friend template<class T> class template_class;
- // or template<class T> friend class template_class;
- ...
- };
-
- but g++ compiler produced the error: parse error before `template'...
-
- --
- With best regards,
- Igor Boukanov (igor.boukanov@fi.uib.no).
-